Temperature and Salinity Workup from raw data:

  1. Compare datalogger data to each other and to YSI sonde data
  2. Present some background summaries and visualizations comparing instruments
  3. Choose datasets best representative of station hydrography, default to RBR
  4. Flag “invalid” data via algorithm based on freezing line
  5. Calibrate EWLD1 and KALD1 (StarOddi) using YSI data
  6. Show some comparison plots b/n calibrated and uncalibrated data
  7. Manually add “Qustionable measurement” flags to questionable conductivity/salinity data and EELD1temerature data form when it was in mud
  8. Write derived (calibrated, QA/QCd) dataset

CTD-QAQC.Rmd is a cleaned-up version that just returns derived datasets and final plots

Import CTD data

First few rows:

Import YSI data

First few rows:

Compare instrument types (color points) to YSI data (black points)

EWLD1 and KALD1 could use calibration

in April in Jago (JAL), high amounts of stratification meant that YSI may not have hit correct depth and cond/sal reading may be off

Difference in readings between instruments

Calibrate EWLD1 and KALD1 using YSI data

T vs S to check for erroneous data via freezing line

What to flag (“anom” data is below TS line givin instrument precision)

## [1] "SO error: T=0.1, Cond=1.5 mS/cm, RBR error: T=0.002, Cond=0.01 mS/cm"

Choose datasets to use in final table

color=StarOddi, black=RBR

use KALD1 calibrated for Temp and Cond, EWLD1 calibrated for Cond

Next step = Flagging data

Values below freezing line (with error) are flagged “INV” for Invalid

Values that are outliers, or appear to be instrument malfunction (as determined by a trained human), or are from when instrument was in mud (EELD1 RBR pulled up coated in mud, attached to negatively buoyant SeaFET) are flagged “QM” for Questionable Measurement

Finalize tables and display data

(plots will not show flagged data)